import base from '/@/api/base';
import Axios from '/@/utils/Axios';

export function getAlbums(data: any): Promise<any> {
  return Axios.post(base.getAlbums, data);
}

export function delAlbum(id: string): Promise<any> {
  return Axios.post(base.delAlbum, { id });
}

export function updateAlbum(data: any): Promise<any> {
  return Axios.post(base.updateAlbum, data);
}

export function createAlbum(data: any): Promise<any> {
  return Axios.post(base.createAlbum, data);
}

export function getPhotosByAlbumId(id: string): Promise<any> {
  return Axios.get(base.getPhotosByAlbumId, { params: { id } });
}

export function addAlbumType(data: any): Promise<any> {
  return Axios.post(base.addAlbumType, data);
}

export function delAlbumType(data: any): Promise<any> {
  return Axios.post(base.delAlbumType, data);
}

export function uploadPhotos(data: any): Promise<any> {
  return Axios.post(base.uploadPhotos, data);
}

export function delPhotos(data: any): Promise<any> {
  return Axios.post(base.delPhotos, data);
}

export function movePhotos(data: any): Promise<any> {
  return Axios.post(base.movePhotos, data);
}
